package day8;

public class Pilottest {
    public static void main(String[] args) {
        Pilot a=new Pilot("老张");
        Plane b=new Airliner(35.2,30000,36);
        Plane c=new Warplane(24.2,26000,4);
        a.testFly(b);
        a.testFly(c);
    }
}
